#ifndef INPUT_CONTROL_H
#define INPUT_CONTROL_H
#include "Player.h"
#include "Menu.h"
#include "GameHandler.h"
#include "Selection.h"



class Menu;
class InputControl
{
public:

	void detectKeyInputPlayer1(sf::Event event, Player &player);
	void detectKeyInputPlayer2(sf::Event event, Player &player);

	void detectJoystickInputPlayer3(Player &player);
	void detectJoystickInputPlayer4(Player &player);

	void InputControl::detectKeyInputMenu(sf::Event &event, Menu &menu, GameHandler &gh, sf::Clock &clock, Player &player, Selection &s);

	void InputControl::detectInputKeySelection(sf::Event event, Selection &selection, GameHandler gh, Player &player1, Player &player2);
	void InputControl::detectInputJoystickSelection(Selection &selection, GameHandler gh, Player &player3, Player &player4);


	//audio

	void playAudioIG();
	void stopAudioIG();

private:
	sf::SoundBuffer bufferBackground;
	sf::Sound soundBackground;
	bool isMoving = false;

};
#endif